package com.luohai.stock.mapper;

import com.luohai.stock.pojo.entity.SysUserRole;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author acer
* @description 针对表【sys_user_role(用户角色表)】的数据库操作Mapper
* @createDate 2024-09-15 21:17:13
* @Entity com.luohai.stock.pojo.entity.SysUserRole
*/
public interface SysUserRoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUserRole record);

    int insertSelective(SysUserRole record);

    SysUserRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUserRole record);

    int updateByPrimaryKey(SysUserRole record);

    Integer addUserAndRoles(@Param("id") Long id,@Param("userId") String userId, @Param("roleIds") List<String> roleIds,@Param("date") Date date);
}
